package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Order;
import com.itheima.reggie.domain.OrderDetail;
import com.itheima.reggie.domain.SetmealDish;

import java.util.Date;
import java.util.List;

public interface OrderService {
    //支付功能
    void submits(Order order);

    //查询订单
    Page<Order> findPage(Integer pageNum, Integer pageSize);

    //分页查询
    Page<Order> selectByPage(Integer pageNum, Integer pageSize, String number, Date beginTime, Date endTime);

    //根据套餐id查询
    List<SetmealDish> findDish(Long id);
}
